import { ApiProperty } from '@nestjs/swagger'
export class AccessTokenData {
  expiresIn: number
  accessToken: string
}

export class WechatMsgXml {
  ToUserName: Array<string>
  FromUserName: Array<string>
  CreateTime: Array<string>
  MsgType: Array<string>
  Content: Array<string>
}

export class SignatureDto {
  timestamp: string
  nonce: string
  signature: string
  echostr: string
}

export class SendTemplateInput {
  @ApiProperty({
    description: 'openid',
    example: 'ovfAXv3RfIX6GCONy2v-g0h7oJ6M',
  })
  touser: string // openid
  @ApiProperty({ description: '产品类型', example: '太空人' })
  productType: string
  @ApiProperty({ description: '产品名称', example: '凹凸曼' })
  name: string
  @ApiProperty({ description: '数量', example: 999 })
  number: string
  @ApiProperty({ description: '日期', example: '2018/9/9' })
  expDate: string
  @ApiProperty({ description: '备注', example: '大威天龙，世尊地藏' })
  remark: string
}
export class SendTemplateDto {
  accessToken: string
  touser: string // openid
  template_id: string
  productType: string
  name: string
  number: string
  expDate: string
  remark: string
}
